From 9aca986cfd8cd66dfcf96784323a6263b0ac61b3 Mon Sep 17 00:00:00 2001 From: "danms@us.ibm.com" Date: Thu, 10 Nov 2005 11:47:34 +0100 Subject: [PATCH] Add this file that wasn't in the tarball for the initial import --- tools/xm-test/mergereport | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tools/xm-test/mergereport diff --git a/tools/xm-test/mergereport b/tools/xm-test/mergereport new file mode 100644 index 0000000000..98b37de50b --- /dev/null +++ b/tools/xm-test/mergereport @@ -0,0 +1,25 @@ +#!/bin/sh + +# Dan Smith - 16-Sep-2005 +# +# This script takes all the .report files in the current +# directory and generates a summary table, showing the +# number of PASS, FAIL, XPASS, and XFAIL tests in each +# report + + +echo " Platform | PASS | FAIL | XPASS | XFAIL |" +echo "---------------------+------+------+-------+-------+" + +for r in *.report; do + + mach=$(basename $r .report) + pass=$(cat $r | grep ' PASS' | cut -d : -f 2 | sed 's/ *//') + fail=$(cat $r | grep ' FAIL' | cut -d : -f 2 | sed 's/ *//') + xpas=$(cat $r | grep ' XPASS' | cut -d : -f 2 | sed 's/ *//') + xfal=$(cat $r | grep ' XFAIL' | cut -d : -f 2 | sed 's/ *//') + + printf "%20s | %4s | %4s | %5s | %5s |\n" "$mach" "$pass" \ + "$fail" "$xpas" "$xfal" + +done -- 2.30.2